package com.itheima.service.Impl;

import com.itheima.dao.Impl.UserDaoImpl;
import com.itheima.dao.UserDao;
import com.itheima.domain.User;
import com.itheima.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserDao userDao = new UserDaoImpl();
    @Override
    public List<User> finAll(Integer pageNum) {
        return userDao.findAll(pageNum);
    }

    @Override
    public Long findCount() {
        return userDao.findCount();
    }
}
